from adb import adbutil

if __name__ == '__main__':
    adbutil.adb_filter(lambda pid, tid, tag, content: tag.startswith('am_'))